# writer:sp
# tiem: 2024/8/21 10:18
import os
 # 检查两个路径是否指向同一个文件
if os.path.samefile('/path/to/file1.txt', '/path/to/alias/file1.txt'):
    print("Both paths point to the same file.")
else:
    print("The paths do not point to the same file.")